/* 基础样式设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-color: #7289da;
  --secondary-color: #4e5d94;
  --dark-bg: #1a1a2e;
  --card-bg: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --border-color: #2a2a42;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary-color);
}

.search-box {
  display: flex;
}

.search-box input {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  border-radius: 20px 0 0 20px;
  color: var(--text-primary);
  outline: none;
  width: 200px;
}

.search-box button {
  background-color: var(--primary-color);
  border: none;
  padding: 0 15px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: var(--secondary-color);
}

/* 英雄区域样式 */
.hero-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-card {
  display: flex;
  margin-bottom: 40px;
}

.avatar-container {
  position: relative;
  margin-right: 40px;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(114, 137, 218, 0.3);
}

.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 5px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-color);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.username {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.user-title {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  margin-bottom: 20px;
}

.stat-item {
  margin-right: 30px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.follow-btn {
  width: 120px;
  padding: 10px 0;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.follow-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.bio-section {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.bio-section h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* 通用区块标题样式 */
.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.section-header p {
  color: var(--text-secondary);
}

/* 作品展示区样式 */
.works-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.filter-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.work-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.work-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-info {
  padding: 15px;
}

.work-title {
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-category {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* 创作过程视频区样式 */
.process-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.video-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(114, 137, 218, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s;
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.video-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 博客区域样式 */
.blog-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.blog-card:hover .blog-title {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.read-more:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.load-more-btn {
  display: block;
  margin: 0 auto;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.load-more-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 联系区域样式 */
.contact-section {
  padding: 60px 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.contact-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
  width: 50px;
  text-align: center;
}

.contact-item h3 {
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-primary);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
}

/* 页脚样式 */
.footer {
  background-color: var(--card-bg);
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.footer p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  z-index: 10;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-image {
  width: 50%;
  object-fit: cover;
}

.modal-info {
  width: 50%;
  padding: 30px;
  overflow-y: auto;
  max-height: 80vh;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.modal-description {
  margin-bottom: 20px;
  line-height: 1.8;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .modal-content {
    flex-direction: column;
  }
  
  .modal-image,
  .modal-info {
    width: 100%;
  }
  
  .modal-image {
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 20px;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    margin-top: 15px;
    justify-content: center;
  }
  
  .profile-card {
    flex-direction: column;
    align-items: center;
  }
  
  .avatar-container {
    margin-right: 0;
    margin-bottom: 30px;
  }
  
  .profile-info {
    text-align: center;
    align-items: center;
  }
  
  .stats {
    justify-content: center;
  }
  
  .videos-container,
  .blog-posts {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

@media (max-width: 576px) {
  .nav-links li {
    margin: 0 10px;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .search-box input {
    width: 150px;
  }
  
  .username {
    font-size: 2rem;
  }
  
  .avatar,
  .avatar-placeholder {
    width: 150px;
    height: 150px;
  }
  
  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}